﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization.Json;
using System.Text;
using Jermaine.Serialization;

namespace AutoUpdater
{
    public class PackageInfo
    {
        public string Version { get; set; }
        public string[] Files { get; set; }
        public string Installer { get; set; }

        public static PackageInfo LoadFrom(string json) {
            var serial = SerializerFactory.GetSerializer<JsonSerializer>();
            return serial.Parse<PackageInfo>(json);
        }
    }
}
